import _http from "@/utils/http";

export default {
    cardCorrelation(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/card/correlation",
            apiName: "根据iccid返对应绑定卡",
            storeName: 'cardCorrelation',
        }, params, loading);
    },

    yklPacks(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/user/packs",
            apiName: "用户已购套餐 - 按主、副卡返数据",
            storeName: 'yklPacks',
        }, params, loading);
    },

    yklHotLocation(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/options/hotLocation",
            apiName: "首页顶部，热门洲、国家选项",
            storeName: 'yklHotLocation',
        }, params, loading);
    },

    yklContinent(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/options/continent",
            apiName: "洲包含国家选项",
            storeName: 'yklContinent',
        }, params, loading);
    },

    yklPackList(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/pack/index",
            apiName: "套餐首页数据",
            storeName: 'yklPackList',
        }, params, loading);
    },

    yklPackDetail(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/pack/qry-detail",
            apiName: "套餐详情",
            storeName: 'yklPackDetail',
        }, params, loading);
    },

    yklPackListMore(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/pack/qry-list",
            apiName: "套餐更多",
            storeName: 'yklPackListMore',
        }, params, loading);
    },

    yklOrderSubmit(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/pack/order-submit",
            apiName: "套餐下单",
        }, params, loading);
    },

    yklOrderPay(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/pay",
            apiName: "套餐支付",
        }, params, loading);
    },

    yklCardOrder(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/card/order/qry",
            apiName: "订购列表",
        }, params, loading);
    },

    yklCardOrderDetail(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/card/order/detail",
            apiName: "订购详情",
        }, params, loading);
    },

    yklBalance(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/nuna/card/balance",
            apiName: "通过iccid查询卡余额",
            storeName: 'yklBalance',
        }, params, loading);
    },

    yklRechargeSubmit(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/recharge/order-submit",
            apiName: "充值-下单",
        }, params, loading);
    },

    yklRecharge(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/recharge/list",
            apiName: "充值-金额配置",
        }, params, loading);
    },

    yklRechargePay(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/recharge/pay",
            apiName: "充值-支付",
        }, params, loading);
    },

    yklRechargeFlow(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/recharge/flow",
            apiName: "充值-收支明细",
        }, params, loading);
    },

    yklPackActivate(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/pack/activate",
            apiName: "套餐激活",
        }, params, loading);
    },

    yklCardActivate(params, loading) {
        return _http("post", {
            url: "/eas/mobile/ykl/card/activate",
            apiName: "卡余额激活",
        }, params, loading);
    },

    recentcode(params, loading) {
        return _http('post', {
            url: '/eas/mobile/index/recentCode',
            apiName: '获取最近充值的设备用户码'
        }, params, loading)
    },

    cards(params, loading) {
        return _http('post', {
            url: '/eas/mobile/index/cards',
            apiName: '获取登录用户的所有设备用户码'
        }, params, loading)
    },
};
